<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        @keyframes dh{
            0%{
                transform: translate(0);
            }
            100%{
                transform: translate(-500px);
            }
        }
        .box1{
            width: 600px;
            height: 100px;
            background-color: antiquewhite;
            position: relative;
            overflow: hidden;
            

        }
        ul{
            width: 1200px;
            height: 100px;
            background-color: aqua;
            position: absolute;
            display: flex;
            animation: dh 4s infinite linear;
            animation-play-state: paused;
        }
        li{
            list-style: none;
            float: left;
        }
        .box1:hover ul{
            transition: all 1s;
            animation-play-state: running;
        }
    </style>
</head>
<body>
    <div class="box1">
            <ul>
                <li><img src="../img/1.jpg"></li>
                <li><img src="../img/2.jpg"</li>
                <li><img src="../img/3.jpg"</li>
                <li><img src="../img/1.jpg"</li>
                <li><img src="../img/2.jpg"</li>
                <li><img src="../img/3.jpg"</li>
                <li><img src="../img/1.jpg"</li>
                <li><img src="../img/2.jpg"</li>
            </ul>
    </div>
</body>
</html>